﻿using Ro.Common.RoInterface.UserType;

namespace Ro.AssistFunction.OutputManage
{
    public class BackActionResult
    {
        /// <summary>
        /// 返回web操作的执行结果
        /// </summary>
        /// <param name="result">bool值</param>
        /// <param name="controlid">操作的控件ID</param>
        /// <param name="extrastrs">追加信息</param>
        /// <returns></returns>
        public static WebActionResult BackWebResult(bool result, string controlid, string extrastrs)
        {
            WebActionResult backResult = new WebActionResult
            {
                Result = result,
                ControlId = controlid,
                ExtraInfo = extrastrs
            };
            return backResult;
        }
    }
}
